<?php
/** db config file */
if(preg_match('~^127\.0\.0\.1|192\.168\.|10\.0\.$~', $_SERVER['SERVER_ADDR']))
{
	//内网测试用
	return array(
		'default'	=>	'mysql://root:123@localhost:3306/wapbook',
	);
}
else
{
	//外网数据
	return array(
		'default'	=>	'mysql://wapbook:book123@localhost:3306/wapbook',
	);
}

?>
